package com.usian.apis.admin;

import com.usian.model.admin.dtos.SensitiveDto;
import com.usian.model.admin.pojos.AdSensitive;
import com.usian.model.common.dtos.ResponseResult;

public interface AdSensitiveControllerApi {
    /**
     * 敏感词的分页按照关键字模糊查询
     * @param dto
     * @return
     */
    ResponseResult findByName(SensitiveDto dto);

    /**
     * 新增敏感词
     * @param adSensitive
     * @return
     */
    ResponseResult save(AdSensitive adSensitive);

    /**
     * 敏感词修改
     * @param adSensitive
     * @return
     */
    ResponseResult update(AdSensitive adSensitive);

    /**
     * 敏感词删除
     * @param id
     * @return
     */
    ResponseResult deleteById(Integer id);
}


